package com.vidmt.api.modules.sys.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.service.CrudService;
import com.vidmt.api.modules.sys.dao.RoleDao;
import com.vidmt.api.modules.sys.entity.Role;

@Service
@Transactional(readOnly = false)
public class RoleService extends CrudService<RoleDao, Role> {

	@Transactional(readOnly = true)
	public Role getRoleByKey(String key) {
		return dao.getRoleByKey(key);
	}

	@Transactional(readOnly = true)
	public List<Role> findClientRoleList() {
		return dao.findClientRoleList();
	}
}
